import request from "./common.js"

export const wxouthlogin=(data)=>request.globalRequest(`/api/wechat/auth/login`,'post',data);//���ںŻ�ȡcode

export const userInfo=(data)=>request.globalRequest(`/api/wechat/auth/me`,'get',data);//�û���Ϣ

export const addressList=(data)=>request.globalRequest(`/api/wechat/user/address/index`,'get',data);//��ַ�б�
export const addressDel=(data)=>request.globalRequest(`/api/wechat/user/address/destroy`,'post',data);//��ַɾ��
export const addressEdit=(data)=>request.globalRequest(`/api/wechat/user/address/update`,'post',data);//��ַ�޸�
export const addressAdd=(data)=>request.globalRequest(`/api/wechat/user/address/store`,'post',data);//��ַ����
export const addressInfo=(data)=>request.globalRequest(`/api/wechat/user/address/show`,'get',data);//��ַ����
export const addressParse=(data)=>request.globalRequest(`/api/wechat/user/address/parse`,'get',data);//地址解析


export const enquiryOrder=(data)=>request.globalRequest(`/api/wechat/express/order/enquiry`,'post',data);//������Ϣ
export const orderList=(data)=>request.globalRequest(`/api/wechat/express/order/index`,'get',data);//���ݶ����б�
export const orderAdd=(data)=>request.globalRequest(`/api/wechat/express/order/create`,'post',data);//���ݶ�������
export const orderDel=(data)=>request.globalRequest(`/api/wechat/express/order/cancel`,'post',data);//���ݶ���ȡ��
export const orderInfo=(data)=>request.globalRequest(`/api/wechat/express/order/show`,'get',data);//���ݶ�������
export const orderTraceInfo=(data)=>request.globalRequest(`/api/wechat/express/order/trace`,'post',data);//���ݶ�����������
export const paymentUnpaid=(data)=>request.globalRequest(`/api/wechat/order/payment/unpaid`,'get',data);//���ɶ���


export const noticeList=(data)=>request.globalRequest(`/api/wechat/user/notify/index`,'get',data);//�û�֪ͨ�б�

export const paymentInfo=(data)=>request.globalRequest(`/api/wechat/order/payment/js`,'get',data);//΢��֧��

export const expressList=(data)=>request.globalRequest(`/api/wechat/express/order/types`,'get',data);//���ݹ�˾

export const getSettingInfo=(keys,data)=>request.globalRequest(`/api/setting/get?keys=${keys}`,'get',data);//获取配置信息


export const paymentBalance=(data)=>request.globalRequest(`/api/wechat/payment/balance`,'get',data);//余额记录
export const paymentUniversal=(data)=>request.globalRequest(`/api/wechat/payment/universal`,'get',data);//余额充值

export const integratedList=(data)=>request.globalRequest(`/api/wechat/integrated/group/index`,'get',data);//综合服务

export const helpCenterList=(data)=>request.globalRequest(`/api/wechat/helper/center/index`,'get',data);//帮助中心


export const workOrderList=(data)=>request.globalRequest(`/api/wechat/work/order/index`,'get',data);//工单列表
export const workOrderAdd=(data)=>request.globalRequest(`/api/wechat/work/order/store`,'post',data);//工单新增
export const workOrderAnswer=(data)=>request.globalRequest(`/api/wechat/work/order/answer`,'post',data);//工单回复
export const workOrderInfo=(data)=>request.globalRequest(`/api/wechat/work/order/show`,'get',data);//工单详情


export const getJssdk=(data)=>request.globalRequest(`/api/wechat/setting/jssdk`,'POST',data);//

